<?php
	if (!empty($this->validationErrors) && !empty($this->validationErrors['Employee']))
	{
		echo "<div style=\"padding-left: 165px; color: red; padding-bottom: 5px;\">\n\t<ul>";
		foreach ($this->validationErrors['Employee'] as $key => $value) {
			echo "\t\t<li>$value</li>";
		}
		echo "\t</ul>\n</div>";
	}
//	echo $this->validationErrors['Employee']['firstname']
?>
<form id="EmployeeEditForm" method="post" action="/employees/edit/<?=$this->data['Employee']['id']?>">
	<input type="hidden" name="data[Employee][id]" value="<?=$this->data['Employee']['id']?>" id="EmployeeId" />
	<fieldset style="padding: 5px 0px">
      <legend style="margin-left:15px; padding: 0px 3px 3px 0px; font-size: 10pt"><strong>Thông tin nhân sự</strong></legend>
	  <div style="margin-top: 10px">
		<div class="label" style="float:left; width: 130px; text-align: right; padding-right: 3px; font-weight: bold">Họ và Tên:</div>
		<div style="float:left; width: 500px">
			<input name="data[Employee][firstname]" value="<?=$this->data['Employee']['firstname']?>" style="width: 80px" class="textbox" type="text" maxlength="60" value="" id="EmployeeFirstname" />
			<input name="data[Employee][middlename]" value="<?=$this->data['Employee']['middlename']?>" style="width: 180px" class="textbox" type="text" maxlength="120" value="" id="EmployeeMiddlename" />
			<input name="data[Employee][lastname]" value="<?=$this->data['Employee']['lastname']?>" style="width: 80px" class="textbox" type="text" maxlength="60" value="" id="EmployeeLastname" />
		</div>
		<div style="clear: both"></div>
	  </div>
 	  <div style="margin-top: 2px">
		<div class="label" style="float:left; width: 130px; text-align: right; padding-right: 3px; font-weight: bold">Email:</div>
		<div style="float:left; width: 300px">
			<input name="data[Employee][email]" style="width: 266px" value="<?=$this->data['Employee']['email']?>" class="textbox" type="text" maxlength="120" value="" id="EmployeeEmail" />
		</div>
		<div style="clear: both"></div>
	  </div>
	  <div style="margin-top: 2px">
		<div class="label" style="float:left; width: 130px; text-align: right; padding-right: 3px; font-weight: bold">Di động:</div>
		<div style="float:left; width: 300px">
			<input name="data[Employee][mobile]" value="<?=$this->data['Employee']['mobile']?>" style="width: 266px" class="textbox" type="text" maxlength="60" value="" id="EmployeeMobile" />
		</div>
		<div style="clear: both"></div>
	  </div>
	  <div style="margin-top: 2px">
		<div class="label" style="float:left; width: 130px; text-align: right; padding-right: 3px; font-weight: bold">Điện thoại Cty:</div>
		<div style="float:left; width: 300px">
			<input name="data[Employee][phoneoffice]" value="<?=$this->data['Employee']['phoneoffice']?>" style="width: 266px" class="textbox" type="text" maxlength="60" value="" id="EmployeePhoneoffice" />
		</div>
		<div style="clear: both"></div>
	  </div>
	  <div style="margin-top: 2px">
		<div class="label" style="float:left; width: 130px; text-align: right; padding-right: 3px; font-weight: bold">Điện thoại Nhà:</div>
		<div style="float:left; width: 300px">
			<input name="data[Employee][phonehome]" value="<?=$this->data['Employee']['phonehome']?>" style="width: 266px" class="textbox" type="text" maxlength="60" value="" id="EmployeePhonehome" />
		</div>
		<div style="clear: both"></div>
	  </div>
	  <div style="margin-top: 2px">
		<div class="label" style="float:left; width: 130px; text-align: right; padding-right: 3px; font-weight: bold">Ngày sinh:</div>
		<div style="float:left; width: 300px;">
			<input name="data[Employee][birthday]" value="<?=$this->data['Employee']['birthday']?>" style="width: 100px" class="textbox" type="text" maxlength="60" value="" id="EmployeeBirthday" />
		</div>
		<div style="clear: both"></div>
	  </div>	  
	  <div style="margin-top: 2px">
		<div class="label" style="float:left; width: 130px; text-align: right; padding-right: 3px; font-weight: bold">Yahoo:</div>
		<div style="float:left; width: 300px;">
			<input name="data[Employee][yahoo]" value="<?=$this->data['Employee']['yahoo']?>" style="width: 100px" class="textbox" type="text" maxlength="60" value="" id="EmployeeYahoo" />
		</div>
		<div style="clear: both"></div>
	  </div>	  
	  	  <div style="margin-top: 2px">
		<div class="label" style="float:left; width: 130px; text-align: right; padding-right: 3px; font-weight: bold">Skype:</div>
		<div style="float:left; width: 300px;">
			<input name="data[Employee][skype]" value="<?=$this->data['Employee']['skype']?>" style="width: 100px" class="textbox" type="text" maxlength="60" value="" id="EmployeeSkype" />
		</div>
		<div style="clear: both"></div>
	  </div>
	  <div style="margin-top: 2px; margin-bottom: 15px">
		<div class="label" style="float:left; width: 130px; text-align: right; padding-right: 3px; font-weight: bold">Msn:</div>
		<div style="float:left; width: 300px;">
			<input name="data[Employee][msn]" value="<?=$this->data['Employee']['msn']?>" style="width: 100px" class="textbox" type="text" maxlength="60" value="" id="EmployeeMsn" />
		</div>
		<div style="clear: both"></div>
	  </div>
   </fieldset>
	<div style="margin-top: 12px; margin-left: 135px">
		<input type="submit" value="Cập nhật" class="button" /><input type="button" value="Trở về" class="button" style="margin-left: 15px" onclick="javascript: window.location='/employees'" />
	</div>
</form>